<extend name="Base/common" />

<block name="style">
    <link rel="stylesheet" type="text/css" href="__CSS__/cart/common.css" media="all" />
    <link rel="stylesheet" type="text/css" href="__CSS__/cart/checkout.css" media="all" />
    <link rel="stylesheet" type="text/css" href="__CSS__/cart/shoppingcar.css" media="all" />
</block>

<block name="body">
    <body style="ZOOM: 1" value="9">
        <div class="checkoutBox">
            <div class="wrapper cf">
                <br />
                <div class="col4-1">
                    <h3 class="font24">您的购物袋 <small>共2件</small> <a class="gobackHistoryBtn" href="" value="13">继续购物</a> </h3>

                    <!--start shoppingcar product list-->
                    <div class="checkoutProList">
                        <!--start check out product box-->
                        <form id="checkoutcarform" method="post" action="">
                        <input name="token" type="hidden" />
                        <div class="checkoutProBox cf">
                            <div class="checkoutProImg fl">
                                <a target="blank"><img alt="" src="__IMG__/cart/e1_844.jpg" /></a>
                            </div>
                            <div class="checkoutPorTxt">
                                <a class="checkoutproTit" title="训练 男子 紧身运动长裤 黑 " href="">训练 男子 紧身运动长裤 黑 </a>
                                <p class="info">S94388</p>
                                <p class="info"><span>颜色：</span>黑</p>
                                <p class="info"><span>尺码：</span>S
                                 <!--已售罄--><em>有现货</em>
                                 <!--已售罄--></p>
                                <div class="link">
                                    <a class="checkProFavor" href="#">收藏</a> |
                                    <a class="r3shoppingCartEdit" href="#">编辑</a> |
                                    <a id="del_6221747" href="#">删除</a>
                                </div>
                            </div>
                            <div class="checkProTotal">￥1,198</div>
                            <input name="productId[6221747]" value="322167" type="hidden" />
                            <input id="super_attribute_6221747_184" name="super_attribute[6221747][184]" type="hidden" />
                            <input class="supdateh" name="cart[6221747][qty]" value="2" type="hidden" />
                            <div class="copySelect  w70 fr" value="20">
                                <select id="supdate" value="3" data-utag="['S94388',599]">
                                    <option>1</option>
                                    <option selected="">2</option>
                                    <option>3</option>
                                    <option>4</option>
                                    <option>5</option>
                                    <option>6</option>
                                    <option>7</option>
                                    <option>8</option>
                                    <option>9</option>
                                    <option>10</option>
                                </select>
                                <!--已售罄-->
                                <!--已售罄-->
                                <div class="selectBox">
                                    <div class="selectVal" value="33"> 2</div>
                                    <div class="selectNav" value="35"><em></em></div>
                                </div>
                            </div>
                            <div style="DISPLAY: block" class="checkPrice">￥599 x</div>
                        </div>
                    </form>
                    </div>
                    <div class="cartButton">
                        <a class="btnCommon btnBlueLinear btnArrow w200" title="结算" href="{:U('Cart/account')}">结算<em></em></a>
                    </div>
                    <img src="__IMG__/cart/service.jpg" />
                </div>
                <div class="col4 last">
                    <div class="cartItem">
                        <a class="btnCommon btnBlueLinear btnArrow w200" title="结算" href="">结算<em></em></a>
                        <h3>订单摘要：<small>共2件</small></h3>
                        <div class="contentBox">
                            <div class="item">商品总额<span>￥1198.00</span></div>
                            <div class="item line">优惠总额<span>￥0.00</span></div>
                            <div class="item total">商品总计<span>￥1198.00</span></div>
                        </div>
                    </div>
                    <!--优惠代码start-->
                    <form id="discount-coupon-form" method="post" action="">
                        <div class="cartItem">
                            <h4 value="15">优惠代码<i class="icon"></i></h4>
                            <div class="sliderContent">
                               <div class="coupon">
                                    <input name="token" value="01129f25d392a151c8d842f7cb7a1456" type="hidden" />
                                    <input id="remove-coupone" name="remove" value="0" type="hidden" />
                                    <input id="coupon_code" name="coupon_code" placeholder="优惠代码" />
                                    <p>请输入优惠代码</p>
                                    <a class="btnCommon btnBlueLinear btnArrow w200" title="使用">使用<em></em></a>
                               </div>
                               <!--start coupon list-->
                               <div class="couponList"></div>
                               <!--end coupon list-->
                            </div>
                        </div>
                    </form>
                    <div class="infoBox">
                        <h4>帮助？</h4>
                        <a href="">关于订单</a>
                        <br />
                        <a href="">验收验货</a>
                        <br />
                        <a href="">物流配送</a>
                        <br />
                        <a href="">售后服务</a>
                    </div>
                    <!--help end-->
                    <div class="infoBox">
                    <h4>我们接受下列付款方式</h4>
                    <img src="__IMG__/cart/pay.jpg" />
                </div>
                </div>
            </div>
        </div>
        <div class="footBox">
            <div class="footBot">
                <div class="wrapper cf">
                    <div class="copyRight">
                        <a title="隐私条款" href="">隐私条款</a>
                        <span>苏ICP备14048805号-1</span>
                        <span>?2016 adidas</span>
                    </div>
                </div>
            </div>
        </div>
   </body>
   <script>
      $('[id=supdate]').on('change',function(){
          var old_qty = $(this).parent().prev(".supdateh").val() ;
          var data_qty = eval( $(this).attr('data-utag') ) ;
          var qty = $(this).get(0).selectedIndex+1;
           qty.link({
               event_name  : 'EDIT PRODUCT',
               product_id : [ data_qty[0]],
               product_price : [ data_qty[1] ],
               product_quantity : [ qty ],
               product_quantity_old : [ old_qty ]
           });
           $(this).parent().prev(".supdateh").val(qty);
        $("#checkoutcarform").submit();
      });
  </script>
</block>

<block name="script">
    <script type="text/javascript" src="__JS__/cart/shoppingcar.js"></script>
    <script type="text/javascript" src="__JS__/cart/frame.js"></script>
    <script type="text/javascript" src="__JS__/cart/common.js"></script>
</block>
